package org.springframework.context.event;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;

/**
 * @author xiaohei
 */
public interface ApplicationEventMulticaster {

    void addApplicationListener(ApplicationListener listener);

    void removeApplicationListener(ApplicationListener listener);

    void multicastEvent(ApplicationEvent event) throws BeansException;
}
